import request from '@/utils/request'

// 查询 期权交易 场内交易
export function getTrade4OtcOptionByPage(query) {
  return request({
    url: '/trade/trade/queryTrade4OtcOptionByPage.action',
    method: 'get',
    params: query
  })
}

// 查询 期权交易
export function queryTradeOption4OtcOptionByPage(query) {
  return request({
    url: '/trade/trade/queryTradeOption4OtcOptionByPage.action',
    method: 'get',
    params: query
  })
}

// 计算 期权交易 场内交易
export function calcTrade4OtcOptionByPage(query) {
  return request({
    timeout: 1800000,
    url: '/trade/durationController/calcTrade4OtcOptionByPage.action',
    method: 'get',
    params: query
  })
}

// 删除交易
export function deleteTrade(selectRows) {
  return request({
    url: '/trade/trade/deleteTrade.action',
    method: 'post',
    data: selectRows
  })
}



